//
//  XMLoadUserInfoTool.h
//  XMWeibo
//
//  Created by chi on 14-8-30.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "XMHttpLoadUserInfoParams.h"
#import "XMHttpLoadUserInfoResult.h"
#import "XMHttpLoadUnreadCountResult.h"

@interface XMLoadUserInfoTool : NSObject

#pragma mark - 通过http加载用户信息
/**
 *  http加载微博用户数据
 *
 *  @param params  请求参数
 *  @param success 成功回调block
 *  @param failure 失败回调block
 */
+ (void)httpLoadUserInfoWithParams:(XMHttpLoadUserInfoParams*)params success:(void(^) (XMHttpLoadUserInfoResult*result))success failure:(void(^) (NSError *error))failure;

/**
 *  http获取某个用户的各种消息未读数
 *
 *  @param params  请求参数
 *  @param success 成功回调block
 *  @param failure 失败回调block
 */
+ (void)httpLoadUserUnreadCountWithParams:(XMHttpLoadUserInfoParams*)params success:(void(^) (XMHttpLoadUnreadCountResult*result))success failure:(void(^) (NSError *error))failure;

@end
